package backend.dto.request;

import backend.dto.Request;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;

@Data
public class CreateBookRequest implements Request {

  @NotBlank(message = "name不可为空")
  private String name;

  private String author;
  private LocalDateTime publishTime;
  private Double price;
}
